package com.ruoyi.station.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 配线架对象 s_distribution_frame
 *
 * @author ruoyi
 * @date 2021-08-06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "配线架实体类")
@TableName("s_distribution_frame")
public class SDistributionFrame
{
    private static final long serialVersionUID=1L;

    /** 主键ID */
    @ApiModelProperty(value = "${comment}" )
    @TableId(value="ID" ,type = IdType.ASSIGN_UUID)
    private String id;

    /** 配线架ID */
    @Excel(name = "配线架ID" )
    @ApiModelProperty(value = "配线架ID" )
    private String distributionFrameId;

    /** 所属机柜 */
    @Excel(name = "所属机柜" )
    @ApiModelProperty(value = "所属机柜" )
    private String machineCabinet;

    /** 配线架类型 */
    @Excel(name = "配线架类型" )
    @ApiModelProperty(value = "配线架类型" )
    private String distributionFrameType;

    /** 端口行 */
    @Excel(name = "端口行" )
    @ApiModelProperty(value = "端口行" )
    private int portLine;

    /** 端口列 */
    @Excel(name = "端口列" )
    @ApiModelProperty(value = "端口列" )
    private int portColumn;

    /** 端口组 */
    @ApiModelProperty(value = "端口组" )
    private String portGroupData;

    /** 数据是否修改 0:未修改 1:已修改*/
    @ApiModelProperty(value = "数据是否修改" )
    private int updateFlag;

    /** 照片 */
    @Excel(name = "照片" )
    @ApiModelProperty(value = "照片" )
    private String fileList;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志" )
    @TableLogic(value = "0",delval = "2")
    private String delFlag;


}
